package com.cn.jiyun.contoller;

import com.cn.jiyun.entity.pojo.Strategy;
import com.cn.jiyun.service.YouService;

import com.jiyun.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/you")
public class YouController {
    @Autowired
    private YouService youService;
    @RequestMapping("/findAll")
    public Result<List<Strategy>> findAll(){
        return Result.ok(youService.findAll());
    }
    @RequestMapping("/findid")
    public Result<Strategy> findid(Integer strategyId){
        return Result.ok(youService.findid(strategyId));
    }
}
